{include file='common/meta'}
<!-- 引入该页面css -->
<link rel="stylesheet" href="/assets/home/css/index.css" />
<link rel="stylesheet" href="/assets/home/css/poster.css" />

<header class="mui-bar mui-bar-nav mui-bar-nav-bg">
    <a id="icon-menu" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">搜索</h1>
</header>
<style>
    #search {
        width: 330px;
    }

    #btn {
        height: 40px;
        margin-bottom: 15px;
    }

    #btn:hover {
        background-color: blue;
    }

    .list {
        height: 194px;
        padding: 10px 0 0;
        background-color: #eee;
        display: flex;
        flex-direction: row;
    }
    
    #img{
        width: 50px;
        height: 50px;
    }

    img{
        width: 50px;
        height: 50px;
        contain: content;
    }

    /* #hen{
        height: 60px;
    }

    #sou{
        padding-top: 5px;
    } */
</style>



<form method="post">
    <input type="text" name="search" placeholder="请输入搜索名称" id="search">
    <button type="submit" id="btn">搜索</button>
</form>

{if isset($subjectList)}
{if condition="$subjectList"}
{foreach $subjectList as $item}
{if $item['title'] == $search}
<div class="list">
    <ul>
        <li>
            <a href="details.html">
                <div class="imgs">
                    <img class="mui-media-object" src="{$item.thumbs}">
                </div>
                <div class="mui-media-body">{$item.title}</div>
                <div class="info">
                    <div class="price">￥{$item.price}</div>
                    <div class="like">
                        {$item.like_count}
                        <img src="/assets/home/images/thumbs-up.png" alt="">
                    </div>
                </div>
            </a>
        </li>
    </ul>
</div>
{/if}
{/foreach}
{/if}
{/if}


{if isset($business)}
{if condition="$business"}
{foreach $business as $item}
{if $item['mobile'] == $search}
<div id="hen">
    <ul id="sou">
        <li>
            <div id="img">
                <img src="{$item['avatar']}">
            </div>
            <div>

            </div>
        </li>
    </ul>
</div>
{/if}
{/foreach}
{/if}
{/if}


<!-- 底部 -->
{include file="common/footer" /}

<script>

</script>